package com.CST.controller;


import com.CST.annotation.*;
import com.CST.common.api.ResultObject;
import com.CST.common.constant.*;
import com.CST.entity.*;
import com.CST.service.*;
import io.swagger.annotations.*;

import java.util.*;

import org.springframework.beans.factory.annotation.*;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ly
 * @since 2022-04-27
 */
@Api(tags = {"成本项目字典"})
@RestController
@RequestMapping("/costItemTypeDict")

public class CostItemTypeDictController {

    @Autowired
    private ICostItemTypeDictService costItemTypeDictService;
    
    @PostMapping("/listCostItemDictByFuzzy")
    @ApiOperation("带条件查询成本项目字典集合，不分页")
    public ResultObject listCostItemDictByFuzzy(@RequestBody CostItemTypeDict costItemTypeDict){
        List<CostItemTypeDict> costItemTypeDictList = costItemTypeDictService.listCostItemDictByFuzzy(costItemTypeDict);
        return ResultObject.successReturn(costItemTypeDictList);
    }

}

